﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace JTTD.DataBase.Model.UserInfo
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Table("t_user_info")]
    public class UserInfoModel : BaseModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Column("user_name")]
        public string UserName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Column("phone")]
        public string Phone { get; set; }


        /// <summary>
        /// 邮箱
        /// </summary>
        [Column("email")]
        public string Email { get; set; }

        /// <summary>
        /// 积分
        /// </summary>
        [Column("integral")]
        public decimal Integral { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [Column("birthday")]
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Column("gender")]
        public int Gender { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        [Column("register_date")]
        public DateTime RegisterDate { get; set; }

        /// <summary>
        /// 微信第三方openId
        /// </summary>
        [Column("wx_open_id")]
        public string WxOpenId { get; set; }

        ///// <summary>
        ///// 车牌
        ///// </summary>
        //[Column("car_number")]
        //public string CarNumber { get; set; }

        /// <summary>
        /// 用户号
        /// </summary>
        [Column("user_number")]
        public string UserNumber { get;  set; } = "JTTD" + DateTime.Now.Ticks;

        ///// <summary>
        ///// 密码
        ///// </summary>
        //[Column("password")]
        //public string Password { get; set; }

        /// <summary>
        /// 头像链接
        /// </summary>
        [Column("head_url")]
        public string HeadUrl { get; set; }
    }
}
